package com.example.policymode3;

import com.example.factorymethod.factory.Fruit;
import com.example.policymode3.factory.DiscountFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * @version 1.0.0
 * @className: Test
 * @description:
 * @author: zhangjunfa
 * @date: 2023/1/3 10:36
 */
public class Test {
    public static void main(String[] args) {
        // List<Fruit> products = new ArrayList();
        // products.add(DiscountFactory.getPayment("假日折扣"));
        // products.add(StaticFactory.getFruitBanana());
        // products.add(StaticFactory.getFruitOrange());
        // ShoppingCart cart = new CartShopping(products);
        // // 注入优惠方案
        // cart.setDiscount(new FullDiscount());
        // cart.submitOrder();
    }
}
